package io.netty.example.study.common;

/**
 * response 对应 OperationResult
 */
public class ResponseMessage extends Message<OperationResult> {

    // Class<> 这里要去掉泛型，否则报错
    @Override
    public Class getMessageBodyDecodeClass(int opcode) {
        return OperationType.fromOpCode(opcode).getOperationResultClazz();
    }
}
